<html>
<head>
<title>Docs For Class Model</title>
<link rel="stylesheet" type="text/css" href="../../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">kassiop-core</td>
  </tr>
  <tr><td class="header_line"><img src="../../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
        
                                                        
                                                                                                                                  		  [ <a href="../../classtrees_kassiop-core.html" class="menu">class tree: kassiop-core</a> ]
		  [ <a href="../../elementindex_kassiop-core.html" class="menu">index: kassiop-core</a> ]
		  	    [ <a href="../../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
      <b>Packages:</b><br />
              <a href="../../li_kassiop.html">kassiop</a><br />
              <a href="../../li_kassiop-core.html">kassiop-core</a><br />
              <a href="../../li_kassiop-managers.html">kassiop-managers</a><br />
              <a href="../../li_kassiop-net.html">kassiop-net</a><br />
              <a href="../../li_kassiop-system.html">kassiop-system</a><br />
              <a href="../../li_kassiop-system-data.html">kassiop-system-data</a><br />
              <a href="../../li_kassiop-system-validators.html">kassiop-system-validators</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	subpackage <b>controllers</b><br>  <div class="package">
			<a href="../../kassiop-core/controllers/_core---controllers---Controller.php.html">		Controller.php
		</a><br>
	  </div><br />
	subpackage <b>models</b><br>  <div class="package">
			<a href="../../kassiop-core/models/_core---models---iValidate.php.html">		iValidate.php
		</a><br>
			<a href="../../kassiop-core/models/_core---models---Model.php.html">		Model.php
		</a><br>
	  </div><br />
	subpackage <b>views</b><br>  <div class="package">
			<a href="../../kassiop-core/views/_core---views---FlashesVars.php.html">		FlashesVars.php
		</a><br>
			<a href="../../kassiop-core/views/_core---views---View.php.html">		View.php
		</a><br>
	  </div><br />
      
            <b>Interfaces:</b><br />
        <div class="package">
	models<br />	    &nbsp;&nbsp;		<a href="../../kassiop-core/models/iValidate.html">iValidate</a><br />
	  </div>
      
            <b>Classes:</b><br />
        <div class="package">
	controllers<br />	    &nbsp;&nbsp;		<a href="../../kassiop-core/controllers/Controller.html">Controller</a><br />
	  </div>
  <div class="package">
	views<br />	    &nbsp;&nbsp;		<a href="../../kassiop-core/views/FlashesVars.html">FlashesVars</a><br />
	    &nbsp;&nbsp;		<a href="../../kassiop-core/views/View.html">View</a><br />
	  </div>
  <div class="package">
	models<br />	    &nbsp;&nbsp;		<a href="../../kassiop-core/models/Model.html">Model</a><br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: Model</h1>
Source Location: /core/models/Model.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre></pre><br />
<div class="description">Defines the model to validate.</div><br /><br />
<h4>Author(s):</h4>
<ul>
          <li>NairuS</li>
                  </ul>




        
        
<h4>Version:</h4>
<ul>
  <li>1.2 $Rev: 90 $ $Date: 2011-01-16 10:23:26 +0100 (Dim, 16 jan 2011) $ $Author: nicolas.surian $</li>
</ul>

                <p class="implements">
            Implements interfaces:
            <ul>
                <li><a href="../../kassiop-core/models/iValidate.html">iValidate</a></li><li>Serializable (internal interface)</li>            </ul>
        </p>
        
</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../../kassiop-core/models/Model.html#var$serialized">$serialized</a></li>
    <li><a href="../../kassiop-core/models/Model.html#var$vo">$vo</a></li>
  </ul>
</td>

<td valign="top">
<h3><a href="#class_consts">Constants</a></h3>
<ul>
    <li><a href="../../kassiop-core/models/Model.html#constEXPLICIT_TYPE">EXPLICIT_TYPE</a></li>
    <li><a href="../../kassiop-core/models/Model.html#constID_FIELD">ID_FIELD</a></li>
  </ul>
</td>

<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../../kassiop-core/models/Model.html#method__construct">__construct</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodaddSchemaValidator">addSchemaValidator</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodafterValidate">afterValidate</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodbeforeValidate">beforeValidate</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodconfigure">configure</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetError">getError</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetErrors">getErrors</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetExcludeFields">getExcludeFields</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetGlobalErrors">getGlobalErrors</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetPostValidator">getPostValidator</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetPostValidators">getPostValidators</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetSchemaValidators">getSchemaValidators</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetValidator">getValidator</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetValidators">getValidators</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodgetVO">getVO</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodhasErrors">hasErrors</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodisNew">isNew</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodserialize">serialize</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodsetExcludeFields">setExcludeFields</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodsetOption">setOption</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodsetPostValidator">setPostValidator</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodsetPostValidators">setPostValidators</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodsetSchemaValidators">setSchemaValidators</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodsetValidator">setValidator</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodsetValidators">setValidators</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodunserialize">unserialize</a></li>
    <li><a href="../../kassiop-core/models/Model.html#methodvalidate">validate</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>






</tr></table>
<hr />

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line 46]<br />
Defines the model to validate.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>author:</b>&nbsp;&nbsp;</td><td>NairuS</td>
  </tr>
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.2 $Rev: 90 $ $Date: 2011-01-16 10:23:26 +0100 (Dim, 16 jan 2011) $ $Author: nicolas.surian $</td>
  </tr>
  <tr>
    <td><b>abstract:</b>&nbsp;&nbsp;</td><td></td>
  </tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />

<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
	<a name="var$serialized"></a>
	<p></p>
	<h4>$serialized = <span class="value"></span></h4>
	<p>[line 77]</p>
  Defines the errors serialized.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>string</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$vo"></a>
	<p></p>
	<h4>$vo = <span class="value"></span></h4>
	<p>[line 84]</p>
  The vo of the model to validate.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td><a href="../../kassiop-system-data/vo/ValueObject.html">ValueObject</a></td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">

  <hr />
	<a name="method__construct"></a>
	<h3>constructor __construct <span class="smalllinenumber">[line 51]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>Model __construct(

$vo)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Create an instance of Model<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type"><a href="../../kassiop-system-data/vo/ValueObject.html">ValueObject</a>&nbsp;&nbsp;</td>
        <td><b>$vo</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodaddSchemaValidator"></a>
	<h3>method addSchemaValidator <span class="smalllinenumber">[line 134]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void addSchemaValidator(

$validator)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Add a shema validator<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type"><a href="../../kassiop-system/validators/FieldsCompareValidator.html">FieldsCompareValidator</a>&nbsp;&nbsp;</td>
        <td><b>$validator</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodafterValidate"></a>
	<h3>method afterValidate <span class="smalllinenumber">[line 443]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void afterValidate(
[
$reflection = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		After validate all fields, we validate the schema if schema validators are setted.<br /><br /><p>Override this method to customize the validation</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">ReflectionClass&nbsp;&nbsp;</td>
        <td><b>$reflection</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodbeforeValidate"></a>
	<h3>method beforeValidate <span class="smalllinenumber">[line 488]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void beforeValidate(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Invoked before the validate method.<br /><br /><p>Override this method to customize the validation</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodconfigure"></a>
	<h3>method configure <span class="smalllinenumber">[line 498]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void configure(
[array
$exludeFields = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Configure the validation of this model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$exludeFields</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetError"></a>
	<h3>method getError <span class="smalllinenumber">[line 174]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code><a href="../../kassiop-system-data/vo/ErrorFieldVO.html">ErrorFieldVO</a> getError(
string
$name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns an ErrorFieldVO of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetErrors"></a>
	<h3>method getErrors <span class="smalllinenumber">[line 153]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array getErrors(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns all the errors of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetExcludeFields"></a>
	<h3>method getExcludeFields <span class="smalllinenumber">[line 194]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array getExcludeFields(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the excludeFields array.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetGlobalErrors"></a>
	<h3>method getGlobalErrors <span class="smalllinenumber">[line 163]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array getGlobalErrors(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the global errors of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>of FieldsCompareValidator</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetPostValidator"></a>
	<h3>method getPostValidator <span class="smalllinenumber">[line 215]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code><a href="../../kassiop-system-validators/base/BaseValidator.html">BaseValidator</a> getPostValidator(
string
$field)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the validator for the field passed-in.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$field</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetPostValidators"></a>
	<h3>method getPostValidators <span class="smalllinenumber">[line 204]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array getPostValidators(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the all the validators of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetSchemaValidators"></a>
	<h3>method getSchemaValidators <span class="smalllinenumber">[line 236]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array getSchemaValidators(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the all the schema validators of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>of FieldsCompareValidator</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetValidator"></a>
	<h3>method getValidator <span class="smalllinenumber">[line 226]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code><a href="../../kassiop-system-validators/base/BaseValidator.html">BaseValidator</a> getValidator(
string
$field)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the validator for the field passed-in.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../../kassiop-core/models/iValidate.html#methodgetValidator">iValidate::getValidator()</a></dt>
						<dd>Returns the validator for the field passed-in.</dd>
					</dl>
		
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$field</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetValidators"></a>
	<h3>method getValidators <span class="smalllinenumber">[line 246]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array getValidators(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the all the validators of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetVO"></a>
	<h3>method getVO <span class="smalllinenumber">[line 257]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code><a href="../../kassiop-system-data/vo/ValueObject.html">ValueObject</a> getVO(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the ValueObject of the model  Inherit this method to return the right type of ValueObject<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodhasErrors"></a>
	<h3>method hasErrors <span class="smalllinenumber">[line 143]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void hasErrors(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		(non-PHPdoc)<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td>hasErrors()</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../../kassiop-core/models/iValidate.html#methodhasErrors">iValidate::hasErrors()</a></dt>
						<dd>Returns true if there was errors in the validation.</dd>
					</dl>
		
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodisNew"></a>
	<h3>method isNew <span class="smalllinenumber">[line 267]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>boolean isNew(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns true if the ValueObject of the model is a new one.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodserialize"></a>
	<h3>method serialize <span class="smalllinenumber">[line 365]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string serialize(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Serializes the errors of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>of the model's errors serialized.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt>Serializable::serialize</dt>
					</dl>
		
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetExcludeFields"></a>
	<h3>method setExcludeFields <span class="smalllinenumber">[line 277]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setExcludeFields(

$fields)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Merges the excludeFields array.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">$fields&nbsp;&nbsp;</td>
        <td><b>$fields</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetOption"></a>
	<h3>method setOption <span class="smalllinenumber">[line 289]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setOption(
string
$name, mixed
$value, 
&$validator, <a href="../../kassiop-system-validators/base/BaseValidator.html">BaseValidator</a>
$validator)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Set an option of the validator reference passed-in<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$value</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type"><a href="../../kassiop-system-validators/base/BaseValidator.html">BaseValidator</a>&nbsp;&nbsp;</td>
        <td><b>$validator</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type"><a href="../../kassiop-system-validators/base/BaseValidator.html">BaseValidator</a>&nbsp;&nbsp;</td>
        <td><b>&$validator</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetPostValidator"></a>
	<h3>method setPostValidator <span class="smalllinenumber">[line 301]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setPostValidator(
string
$field, 
$validator)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Sets a postValidator for a field in the collection.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../../kassiop-core/models/iValidate.html#methodsetPostValidator">iValidate::setPostValidator()</a></dt>
						<dd>Sets the post validator for the field passed-in.</dd>
					</dl>
		
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$field</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type"><a href="../../kassiop-system-validators/base/BaseValidator.html">BaseValidator</a>&nbsp;&nbsp;</td>
        <td><b>$validator</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetPostValidators"></a>
	<h3>method setPostValidators <span class="smalllinenumber">[line 311]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setPostValidators(

$validators)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Sets all the validators of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../../kassiop-core/models/iValidate.html#methodsetPostValidators">iValidate::setPostValidators()</a></dt>
						<dd>Sets the all the post validators of the model.</dd>
					</dl>
		
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$validators</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetSchemaValidators"></a>
	<h3>method setSchemaValidators <span class="smalllinenumber">[line 335]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setSchemaValidators(

$validators)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Sets all the schema validators of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td>InvalidArgumentException</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$validators</b>&nbsp;&nbsp;</td>
        <td>array of FieldsCompareValidator</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetValidator"></a>
	<h3>method setValidator <span class="smalllinenumber">[line 323]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setValidator(
string
$field, 
$validator)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Sets the validator for the field passed-in.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../../kassiop-core/models/iValidate.html#methodsetValidator">iValidate::setValidator()</a></dt>
						<dd>Sets the validator for the field passed-in.</dd>
					</dl>
		
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$field</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type"><a href="../../kassiop-system-validators/base/BaseValidator.html">BaseValidator</a>&nbsp;&nbsp;</td>
        <td><b>$validator</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetValidators"></a>
	<h3>method setValidators <span class="smalllinenumber">[line 355]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setValidators(

$validators)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Sets all the validators of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../../kassiop-core/models/iValidate.html#methodsetValidators">iValidate::setValidators()</a></dt>
						<dd>Sets all the validators of the model.</dd>
					</dl>
		
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$validators</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodunserialize"></a>
	<h3>method unserialize <span class="smalllinenumber">[line 375]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array unserialize(

$serialized)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Unserializes the errors of the model.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>of the model's errors unserialized.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt>Serializable::unserialize</dt>
					</dl>
		
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">&nbsp;&nbsp;</td>
        <td><b>$serialized</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodvalidate"></a>
	<h3>method validate <span class="smalllinenumber">[line 386]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>true validate(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Validates all the model fields.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>or false.</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td>validate()</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

			<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../../kassiop-core/models/iValidate.html#methodvalidate">iValidate::validate()</a></dt>
						<dd>Validate all the model's fields.</dd>
					</dl>
		
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />

<hr />
<a name="class_consts"></a>
<h3>Class Constants</h3>
<div class="tags">
	<a name="constEXPLICIT_TYPE"></a>
	<p></p>
	<h4>EXPLICIT_TYPE = <span class="value">&nbsp;'_explicitType'&nbsp;</span></h4>
	<p>[line 70]</p>
  Defines the _explicitType field.<br /><br />
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="constID_FIELD"></a>
	<p></p>
	<h4>ID_FIELD = <span class="value">&nbsp;'id'&nbsp;</span></h4>
	<p>[line 63]</p>
  Defines the id field.<br /><br />
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 20 Jan 2011 14:38:59 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>